home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / CMPRComponent.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  2.4 KB  |  94 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMPRComponent.p
  3.  
  4.      Contains:    ColorSync ProfileResponder Component API
  5.  
  6.      Version:    Technology:    ColorSync 1.0
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1993-1998 by Apple Computer, Inc. All rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT CMPRComponent;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CMPRCOMPONENT__}
  27. {$SETC __CMPRCOMPONENT__ := 1}
  28.  
  29. {$I+}
  30. {$SETC CMPRComponentIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __MACTYPES__}
  34. {$I MacTypes.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __QUICKDRAW__}
  37. {$I Quickdraw.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __COMPONENTS__}
  40. {$I Components.p}
  41. {$ENDC}
  42. {$IFC UNDEFINED __CMAPPLICATION__}
  43. {$I CMApplication.p}
  44. {$ENDC}
  45.  
  46.  
  47. {$PUSH}
  48. {$ALIGN MAC68K}
  49. {$LibExport+}
  50.  
  51.  
  52. CONST
  53.     CMPRInterfaceVersion        = 0;
  54.  
  55. { Component function selectors }
  56.     kCMPRGetProfile                = 0;
  57.     kCMPRSetProfile                = 1;
  58.     kCMPRSetProfileDescription    = 2;
  59.     kCMPRGetIndexedProfile        = 3;
  60.     kCMPRDeleteDeviceProfile    = 4;
  61.  
  62.  
  63. FUNCTION CMGetProfile(pr: ComponentInstance; aProfile: CMProfileHandle; VAR returnedProfile: CMProfileHandle): CMError;
  64.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  65.     INLINE $2F3C, $0008, $0000, $7000, $A82A;
  66.     {$ENDC}
  67. FUNCTION CMSetProfile(pr: ComponentInstance; newProfile: CMProfileHandle): CMError;
  68.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  69.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  70.     {$ENDC}
  71. FUNCTION CMSetProfileDescription(pr: ComponentInstance; DeviceData: LONGINT; hProfile: CMProfileHandle): CMError;
  72.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  73.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  74.     {$ENDC}
  75. FUNCTION CMGetIndexedProfile(pr: ComponentInstance; search: CMProfileSearchRecordHandle; VAR returnProfile: CMProfileHandle; VAR index: LONGINT): CMError;
  76.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  77.     INLINE $2F3C, $000C, $0003, $7000, $A82A;
  78.     {$ENDC}
  79. FUNCTION CMDeleteDeviceProfile(pr: ComponentInstance; deleteMe: CMProfileHandle): CMError;
  80.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  81.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  82.     {$ENDC}
  83.  
  84. {$ALIGN RESET}
  85. {$POP}
  86.  
  87. {$SETC UsingIncludes := CMPRComponentIncludes}
  88.  
  89. {$ENDC} {__CMPRCOMPONENT__}
  90.  
  91. {$IFC NOT UsingIncludes}
  92.  END.
  93. {$ENDC}
  94.